package com.mikey.function;

import java.util.function.Function;

/**
 * @author :Mikey
 * @description :Function 函数型接口,有一个输入参数，有一个输出
 * @create :2022-09-22 10:48:00
 */
public class Demo {
    public static void main(String[] args) {
        Function<String, String> function = new Function<String, String>() {
            //工具类，输出输入的值
            @Override
            public String apply(String str) {
                return str;
            }
        };
        Function function1=(str)->{return str;};
        System.out.println(function.apply("sss"));
    }
}
